const { getDir } = require('../lib/request');

class Reptile {
  static async getBlockList(ctx) {
    const { params: { name, type } } = ctx;
    if (!name) {
      ctx.body = {
        status: false,
        message: "包名不能为空!"
      }
      return;
    }
    ctx.body = await getDir(name, type);
  }
}

module.exports = Reptile;